<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class GameConfig extends Model
{
    protected $table = 'game_config';
    protected $primaryKey = 'game_id';

    public $timestamps = true;
    protected $dateFormat = 'U';

    public $fillable = ['key','app_name','introduct','value','callback_url','version','note','game_id','hot_cloud_id'];

    public function game()
    {
        return $this->hasOne('App\Model\GameList','game_id','game_id');
    }
}
